
package GUI;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;



public class AboutUs extends JFrame  {
	private JLabel project = new JLabel("Project        :   RatRoid");
	private JLabel version = new JLabel("Version        :   1.0");
	private JLabel coded = new JLabel(  "Coded by      :   Hicham  ");
	private JLabel gmail = new JLabel(  "Gmail            :   ratroid1@gmail.com");
	
	JLabel image=new JLabel();
	public AboutUs(){
		
	   setTitle("About us");
           this.setIconImage(new javax.swing.ImageIcon(getClass().getResource("/res/logo.png")).getImage());
	   TitledBorder title = BorderFactory.createTitledBorder("Contact us !");
	   title.setTitleColor(Color.white);
	   project.setForeground(Color.white);
	   version.setForeground(Color.white);
	   coded.setForeground(Color.white);
	   gmail.setForeground(Color.white);
	   

	   Container pan1 = getContentPane();

	   ((JComponent) pan1).setBorder(title);
	   pan1.setLayout(new BorderLayout(5, 5));
	   JPanel panneauLabel = new JPanel(new GridLayout(4, 1, 4, 4));
	   panneauLabel.add(this.project);
	   panneauLabel.add(this.version);
	   panneauLabel.add(this.coded);
	   panneauLabel.add(this.gmail);
	   
		image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/logo1.png")));

		pan1.add(panneauLabel, BorderLayout.EAST);
		pan1.add(image, BorderLayout.CENTER);
		// getContentPane().setBackground(Color.black);
		this.setSize(490, 250);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		pan1.setBackground(Color.black);
		panneauLabel.setBackground(Color.black);
		this.getContentPane().setBackground(Color.black);
		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
	   setVisible(true);
	   
   }
    
}
